package net.plankton.context;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;

import net.plankton.agents.main.SurveillanceOutput;

public class Context {

	private RiskContext riskContext;
	private SurveillanceOutput output;
	
private Map<String, List<String>> store = new ConcurrentHashMap<String, List<String>>();
	
	public List<String> getValues(String key) {
		List<String> list = store.get(key);
		if (list==null) {
			list = new CopyOnWriteArrayList<String>();
			store.put(key, list);
		}
		return list;
	}
	
	public Context(RiskContext riskContext, SurveillanceOutput output) {
		super();
		this.riskContext = riskContext;
		this.output = output;
	}

	/**
	 * @return the riskContext
	 */
	public RiskContext getRiskContext() {
		return riskContext;
	}

	/**
	 * @return the output
	 */
	public SurveillanceOutput getOutput() {
		return output;
	}
	
	
	
}
